from apps.users.models import User
from peewee import MySQLDatabase
from apps.community.models import CommunityGroup, CommunityGroupMember, Post,PostComment,CommentLike
from apps.question.models import Question, Answer
db = MySQLDatabase(
    'forum', host='127.0.0.1',port=3306,user='root',password='998219'
)
def init():
    #生成表
    db.create_tables([Question, Answer])

if __name__ == '__main__':
    init()